package com.huaxia.day13;

import com.huaxia.day7a.Animal;

/**
 * 继承+实现接口
 */
public class PrintRunnable extends Animal implements Runnable {
    @Override
    public void run() {
        System.out.println(Thread.currentThread().getName());
        for (int i = 0; i < 10; i++) {
            System.out.println(i);
        }
    }
}
